<script setup>

defineProps({
  title: {
    type: String,
    required: true
  },
  subTitle: {
    type: String
  }
})

</script>

<template>

  <div class="home-panel">
    <div class="head">
      <!--标题-->
      <h3>{{ title }}<small>{{ subTitle }}</small></h3>
    </div>
    <div class="container">
      <!--插槽-->
      <slot/>
    </div>
  </div>

</template>

<style scoped lang="scss">
.home-panel {
   background-color: #fff;
  .head {
    padding: 40px 0;
    align-items: flex-end;
    h3{
      font-size: 32px;
      font-weight: normal;
      margin-left: 6px;
      height: 35px;
      line-height: 35px;

      small {
        font-size: 16px;
        color: #999;
        margin-left: 20px;
      }
    }
  }
  .container {
    display: flex;
  }
}
</style>
